package com.vrp3d.common.consts;

/**
 * 通用信息常量
 *
 * @author vrp3d
 */
public class CommonConst {

    /**
     * 当前页
     * 每页数量
     */
    public static final String PAGE_CURRENT = "1";
    public static final String PAGE_SIZE = "3";

    /**
     * 展厅名称最大长度
     * 展厅展位最大数量
     * 作品名称长度限制
     * 作者名称
     */
    public static final int NAME_LENGTH = 30;
    public static final int NUMBER_OF_BOOTHS = 999;
    public static final int WORK_NAME_LENGTH = 30;
    public static final int AUTHOR_NAME_LENGTH = 30;
    public static final int NUMBER_OF_PICTURES = 3;

    /**
     * 新闻相关
     */
    public static final int NEWS_NAME_LENGTH = 30;

    /**
     * 用户名3-16位正则,不能以数字开头
     * 密码正则,大小写字母,数字,符号组合
     */
    public static final String USERNAME_REGULAR = "^(?![0-9])[a-zA-Z0-9_\\u4e00-\\u9fa5]{3,16}$";
    public static final String PASSWORD_REGULAR = "^(?![A-Z]+$)(?![a-z]+$)(?!\\d+$)(?![\\W_]+$)\\S{8,20}$";

    public static final String PHONE_REGEX = "^1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[189][0-9]{2}|6[567][0-9]{2}|4([14]0[0-9]{3}|[68][0-9]{4}|[579][0-9]{2}))[0-9]{6}$";
    public static final String VERIFICATION_CODE = "^\\d{6}$";

}
